#include "Individual.h"
#ifndef INDLIST_H
#define INDLIST_H

#include <opencv2/opencv.hpp>
#include <vector>
#include <iostream>
#include "st.h"
#include <utility>
#include <sstream>

class IndList {
public:

    IndList();
    //char act;
    std::vector<Individual> Individuals;
    void loadFromFile(std::string fileName);
    void saveToFile(std::string fileName);
    void addInd(std::string name, cv::Mat meanVector, cv::Mat iCovarMat);
    void collectSamples(char &act, float d[15][15], int vectorDimension,
            int bonesIndex[2][15], int nTimes);
    std::vector<String> mahal(float distances[15][15], int bonesIndex[2][15]);
    void rmahal(float distances[15][15], int bonesIndex[2][15]);
    void sortedMahal(float distances[15][15], int bonesIndex[2][15]);
    void sort(std::vector< std::pair<Individual*, double> > &pairs);
    void teste(std::vector< std::pair<Individual*, double> > pairs);

    
};

#endif